<!DOCTYPE html>
<html lang="zh">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // 创建对象
      var weekday = new Date()
      var week = weekday.getDay()
      if (week === 1) {
        alert("打羽毛球")
      } else if (week === 2) {
        alert("打羽毛球")
      } else if (week === 3) {
        alert("打球")
      } else if (week === 4) {
        alert("打羽")
      } else if (week === 5) {
        alert("打毛球")
      } else {
        alert("打毛")
      }
    </script>
  </body>
</html>
